package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.CollectLog;
import campus.aiit.ssl.manage.custom.dao.BaseDao;

import java.sql.Date;
import java.util.List;
import java.util.Map;

public interface DeviceDataCollectionDao extends BaseDao<CollectLog> {
    @Override
    CollectLog selectByPrimaryKey(Long id);

    @Override
    int insertSelective(CollectLog collectLog);

    @Override
    int deleteByPrimaryKey(Long id);

//    @Override
//    int updateByPrimaryKeySelective(CollectLog record);

    List<Map<String, Object>> collectLogs(Long typeId, Long SchoolZoneId, Long BuildingId, Long Floor, Long RoomId, Long DeviceId,
                                          String startTime, String endTime);

    int deleteByTime(long day);

//    int getTotalDeviceData(Long SchoolZoneId, Long BuildingId, Long Floor, Long RoomId, Long DeviceId,
//                     Date startTime, Date endTime);
}
